package cd.safe.school.data;

import android.content.Context;
/**
 * �����¼�洢
 * 
 */
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteOpenHelper;

public class ChatRecord extends SQLiteOpenHelper {
	public static String tabname;

	public ChatRecord(Context context) {
		super(context, "chatrecord.db", null, 1);
		
	}

	@Override
	public void onCreate(SQLiteDatabase db) {

		String sql = "create table if not exists "
				+ tabname
				+ "(id integer primary key autoincrement,userid integer,msg text,lasttime text,headpath text,username text,isimg integer)";
		db.execSQL(sql);

	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

	}

}
